package com.gitee.qdbp.general.system.api.personnel.model;

import java.io.Serializable;
import com.gitee.qdbp.base.enums.Gender;
import com.gitee.qdbp.base.system.model.IAccount;
import com.gitee.qdbp.base.system.model.IAccountType;

/**
 * 虚拟用户
 *
 * @author zhaohuihua
 * @version 170427
 */
public class VirtualUser implements IAccount, Serializable {

    /** 版本序列号 **/
    private static final long serialVersionUID = 1L;

    /** 租户编号 **/
    private String tenantCode;

    /** 用户类型 **/
    private IAccountType userType;

    /** 用户ID **/
    private String userId;

    /** 呢称 **/
    private String nickName;

    public VirtualUser() {
    }

    public VirtualUser(String tenantCode, IAccountType userType, String userId, String name) {
        this.tenantCode = tenantCode;
        this.userType = userType;
        this.userId = userId;
        this.nickName = name;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    @Override
    public String getTenantCode() {
        return tenantCode;
    }

    public void setUserType(IAccountType userType) {
        this.userType = userType;
    }

    @Override
    public IAccountType getUserType() {
        return userType;
    }

    public void setId(String id) {
        this.userId = id;
    }

    @Override
    public String getId() {
        return userId;
    }

    public void setNickName(String name) {
        this.nickName = name;
    }

    public String getNickName() {
        return nickName;
    }

    public String getRealName() {
        return null;
    }

    @Override
    public String getDeptCode() {
        return null;
    }

    @Override
    public String getUserCode() {
        return null;
    }

    @Override
    public String getUserName() {
        return null;
    }

    @Override
    public String getPhone() {
        return null;
    }

    @Override
    public String getEmail() {
        return null;
    }

    @Override
    public Gender getGender() {
        return null;
    }

    @Override
    public String getPortrait() {
        return null;
    }

    @Override
    public String getDisplayName() {
        return nickName;
    }

    public String toString() {
        return nickName;
    }
}
